<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>Title</title>
    <script src="lib/zepto.min.js"></script>
    <style>
        body{
            width: 200px;
            height: 600px;
            padding: 0;
            margin: 0;
        }
        .y-slide{
            position: fixed;
            width: 220px;
            -webkit-transform: translateX(-220px);
            -moz-transform: translateX(-220px);
            -o-transform: translateX(-220px);
            -ms-transform: translateX(-220px);
            transform: translateX(-220px);
            -webkit-transition: transform .5s;
            -moz-transition: transform .5s;
            -o-transition: transform .5s;
            transition: transform .5s;
            background: orangered;
        }
    </style>
</head>
<body>
<div class="y-slide" style="z-index: -99"></div>
<button type="button" class="y-click">点击出来</button>
<script src="lib/zepto.js"></script>
<script>

    $(".y-slide").slide();
</script>
</body>
</html>